﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001331 RID: 4913
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeChallengeRewardScRsp : IMessage<TakeChallengeRewardScRsp>, IMessage, IEquatable<TakeChallengeRewardScRsp>, IDeepCloneable<TakeChallengeRewardScRsp>, IBufferMessage
	{
		// Token: 0x17003DF8 RID: 15864
		// (get) Token: 0x0600DBEC RID: 56300 RVA: 0x0024CEE3 File Offset: 0x0024B0E3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeChallengeRewardScRsp> Parser
		{
			get
			{
				return TakeChallengeRewardScRsp._parser;
			}
		}

		// Token: 0x17003DF9 RID: 15865
		// (get) Token: 0x0600DBED RID: 56301 RVA: 0x0024CEEA File Offset: 0x0024B0EA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeChallengeRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003DFA RID: 15866
		// (get) Token: 0x0600DBEE RID: 56302 RVA: 0x0024CEFC File Offset: 0x0024B0FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeChallengeRewardScRsp.Descriptor;
			}
		}

		// Token: 0x0600DBEF RID: 56303 RVA: 0x0024CF03 File Offset: 0x0024B103
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeChallengeRewardScRsp()
		{
		}

		// Token: 0x0600DBF0 RID: 56304 RVA: 0x0024CF18 File Offset: 0x0024B118
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeChallengeRewardScRsp(TakeChallengeRewardScRsp other) : this()
		{
			this.groupId_ = other.groupId_;
			this.retcode_ = other.retcode_;
			this.takenRewardList_ = other.takenRewardList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DBF1 RID: 56305 RVA: 0x0024CF65 File Offset: 0x0024B165
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeChallengeRewardScRsp Clone()
		{
			return new TakeChallengeRewardScRsp(this);
		}

		// Token: 0x17003DFB RID: 15867
		// (get) Token: 0x0600DBF2 RID: 56306 RVA: 0x0024CF6D File Offset: 0x0024B16D
		// (set) Token: 0x0600DBF3 RID: 56307 RVA: 0x0024CF75 File Offset: 0x0024B175
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GroupId
		{
			get
			{
				return this.groupId_;
			}
			set
			{
				this.groupId_ = value;
			}
		}

		// Token: 0x17003DFC RID: 15868
		// (get) Token: 0x0600DBF4 RID: 56308 RVA: 0x0024CF7E File Offset: 0x0024B17E
		// (set) Token: 0x0600DBF5 RID: 56309 RVA: 0x0024CF86 File Offset: 0x0024B186
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003DFD RID: 15869
		// (get) Token: 0x0600DBF6 RID: 56310 RVA: 0x0024CF8F File Offset: 0x0024B18F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<TakenChallengeRewardInfo> TakenRewardList
		{
			get
			{
				return this.takenRewardList_;
			}
		}

		// Token: 0x0600DBF7 RID: 56311 RVA: 0x0024CF97 File Offset: 0x0024B197
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeChallengeRewardScRsp);
		}

		// Token: 0x0600DBF8 RID: 56312 RVA: 0x0024CFA8 File Offset: 0x0024B1A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeChallengeRewardScRsp other)
		{
			return other != null && (other == this || (this.GroupId == other.GroupId && this.Retcode == other.Retcode && this.takenRewardList_.Equals(other.takenRewardList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DBF9 RID: 56313 RVA: 0x0024D008 File Offset: 0x0024B208
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.GroupId != 0U)
			{
				num ^= this.GroupId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.takenRewardList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DBFA RID: 56314 RVA: 0x0024D06E File Offset: 0x0024B26E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DBFB RID: 56315 RVA: 0x0024D076 File Offset: 0x0024B276
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DBFC RID: 56316 RVA: 0x0024D080 File Offset: 0x0024B280
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.takenRewardList_.WriteTo(ref output, TakeChallengeRewardScRsp._repeated_takenRewardList_codec);
			if (this.GroupId != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.GroupId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DBFD RID: 56317 RVA: 0x0024D0EC File Offset: 0x0024B2EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.GroupId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GroupId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.takenRewardList_.CalculateSize(TakeChallengeRewardScRsp._repeated_takenRewardList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DBFE RID: 56318 RVA: 0x0024D158 File Offset: 0x0024B358
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeChallengeRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.GroupId != 0U)
			{
				this.GroupId = other.GroupId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.takenRewardList_.Add(other.takenRewardList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DBFF RID: 56319 RVA: 0x0024D1B9 File Offset: 0x0024B3B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DC00 RID: 56320 RVA: 0x0024D1C4 File Offset: 0x0024B3C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 18U)
				{
					if (num != 24U)
					{
						if (num != 40U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Retcode = input.ReadUInt32();
						}
					}
					else
					{
						this.GroupId = input.ReadUInt32();
					}
				}
				else
				{
					this.takenRewardList_.AddEntriesFrom(ref input, TakeChallengeRewardScRsp._repeated_takenRewardList_codec);
				}
			}
		}

		// Token: 0x04005752 RID: 22354
		private static readonly MessageParser<TakeChallengeRewardScRsp> _parser = new MessageParser<TakeChallengeRewardScRsp>(() => new TakeChallengeRewardScRsp());

		// Token: 0x04005753 RID: 22355
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005754 RID: 22356
		public const int GroupIdFieldNumber = 3;

		// Token: 0x04005755 RID: 22357
		private uint groupId_;

		// Token: 0x04005756 RID: 22358
		public const int RetcodeFieldNumber = 5;

		// Token: 0x04005757 RID: 22359
		private uint retcode_;

		// Token: 0x04005758 RID: 22360
		public const int TakenRewardListFieldNumber = 2;

		// Token: 0x04005759 RID: 22361
		private static readonly FieldCodec<TakenChallengeRewardInfo> _repeated_takenRewardList_codec = FieldCodec.ForMessage<TakenChallengeRewardInfo>(18U, TakenChallengeRewardInfo.Parser);

		// Token: 0x0400575A RID: 22362
		private readonly RepeatedField<TakenChallengeRewardInfo> takenRewardList_ = new RepeatedField<TakenChallengeRewardInfo>();
	}
}
